package com.example.mo.Entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class User {
    @TableId(value = "user_id")  // 显式声明主键列名（非自增）
    private Integer userId;       // 对应user_table的user_id
    private String username;      // 对应user_table的username
    private String password;      // 对应user_table的password
    private Integer isActive;     // 对应user_table的is_active（1启用/0禁用）


    public User(Integer userId, String username, String password, Integer isActive) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.isActive = isActive;
    }
}

